package com.example.newproject_overseas.ViewModel

import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import com.example.newproject_overseas.model.entity.Category
import com.example.newproject_overseas.model.entity.Order
import com.example.newproject_overseas.model.entity.ProductList_7
import com.example.newproject_overseas.model.entity.ProductList_7_box

class OrderDetailsViewModel : ViewModel() {

    var categories by mutableStateOf(
        listOf(
            Category("1", "All"),
            Category("2", "Success"),
            Category("3", "Overdue"),
            Category("4", "Finish")
        )
    )


    var orderList by mutableStateOf(
        listOf(
            Order(
                "1",
                "Loan notenumber01",
                15.00,
                "7DAY",
                "2023-02-0708:59:22",
                "L20230207062922806",
                0
            ),
            Order(
                "1",
                "Loan notenumber02",
                25.00,
                "8DAY",
                "2023-02-0708:59:22",
                "L20230207062922806",
                1
            )
        )
    )
        private set
    var product_7List by mutableStateOf(
        listOf(
            ProductList_7(
                "7,001",
                "201",
                true,
                ProductList_7_box("₹ 2210.78", "₹ 269", "₹ 6732", "₹ 9211.78")
            ),
            ProductList_7(
                "7,001",
                "201",
                true,
                ProductList_7_box("₹ 2210.78", "₹ 269", "₹ 6732", "₹ 9211.78")
            ),
            ProductList_7(
                "7,001",
                "201",
                true,
                ProductList_7_box("₹ 2210.78", "₹ 269", "₹ 6732", "₹ 9211.78")
            ),
            ProductList_7("7,001", "201", true, null)
        )
    )


}